﻿<Window x:Class="AboutWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="About..." Height="300" Width="300" WindowStyle="ToolWindow">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <Grid>
            <Grid.Background>
                <VisualBrush Viewport="0,0,10,10" ViewportUnits="Absolute" TileMode="Tile" Stretch="None">
                    <VisualBrush.Visual>
                        <Grid Width="10" Height="10">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="5" />
                                <RowDefinition Height="5" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="5" />
                                <ColumnDefinition Width="5" />
                            </Grid.ColumnDefinitions>

                            <Grid Background="Gray" />
                            <Grid Background="Gray" Grid.Row="1" Grid.Column="1" />
                        </Grid>                        
                    </VisualBrush.Visual>
                </VisualBrush>
            </Grid.Background>
            
        </Grid>
        <Grid Margin="0,5,0,0" Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>
            
            <TextBlock Text="{StaticResource AppTitle}" FontSize="12" FontWeight="Bold" TextAlignment="Center" Margin="0,5,0,5" />
            <Grid Grid.Row="1">
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                
                <TextBlock Text="Version:" />
                <TextBlock Text="DLL-Version:" Grid.Row="1" />
                <TextBlock x:Name="txtVersion" Text="#.#.#" Grid.Column="1" />
                <TextBlock x:Name="txtDLLVersion" Text="#.#.#" Grid.Row="1" Grid.Column="1" />
            </Grid>
            <StackPanel Orientation="Horizontal" Margin="0,5,0,0" HorizontalAlignment="Right" Grid.Row="2">
                <Image Source="images/dotnet.jpg" Margin="0,0,5,0" />
                <Image Source="images/eib.gif" Margin="5,5,5,5" />
                <Image Source="images/knx.png" Margin="5,0,5,0" />
            </StackPanel>
        </Grid>
        <Grid Grid.Row="2">
            <Border Height="1" BorderThickness="0" Background="Black" VerticalAlignment="Top" />
            <Button x:Name="Close" IsCancel="True" IsDefault="True" Content="Close" Margin="0,5,5,5" HorizontalAlignment="Right" VerticalAlignment="Top" Height="23" Width="75" />
        </Grid>
    </Grid>
</Window>
